<%-- 
    Document   : BookingList
    Created on : 2014/9/19, 上午 04:40:13
    Author     : Dragon
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>入住資訊</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="/JavaCamping/scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#OKBtn").click(function(){                    
                   return CheckForm();                    
                });
                
                 $("#OKCancel").click(function(){                    
                                      
                });
            });
            //檢驗表單填寫
            function CheckForm()
            {
                var msg="";
                if($("#checkinName").val()=="")
                    msg+="* 請填寫紮營者姓名！\n";
                if($("#checkinTEL").val()=="")
                    msg+="* 請填入紮營聯絡電話！\n";
                if($("#checkinID").val()=="")
                    msg+="* 請填寫入紮營者身分證字號！\n";
              
                if(msg=="")
                    return true;
                else
                {
                    alert(msg);
                    return false;
                }
            }

        </script>
    </head>
    <body>
       <jsp:include page="../tools/TopBanner.jsp"></jsp:include>
        <h2>訂單資料確認</h2>
        <form id="form1" action="Addlodging" method="post">
            <table width="950" cellpadding="15">
                <tr>
                    <td align="right" width="150"><b>會員姓名：</b></td>
                    <td width="350">
                        <input id="accountName" name="accountName" type="text" value="<%= session.getAttribute("LoginName").toString() %>" /> 
                    </td>
                </tr>
                <td align="left" colspan="2" ><b>紮營者相關資料填寫</b></td>
                 <tr>
                    <td align="right" width="150"><b>紮營者姓名：</b></td>
                    <td><input id="checkinName" name="checkinName" type="text" value="" /></td>
                </tr>
                <tr>
                    <td align="right" ><b>紮營者電話：</b></td>
                    <td><input id="checkinTEL" name="checkinTEL" type="text" value="" /></td>
                </tr>
                <tr>
                    <td align="right" ><b>紮營者身分證號：</b></td>
                    <td><input id="checkinID" type="text"  name="checkinID" value="" /></td>
                </tr>
            <tr>
                <td> <input id="OKBtn" type="submit" value="訂單送出" /> </td>
                <td> <input id="OKCancel" type="submit" value="訂單取消" /> </td>
            </tr>
           </table>  
        </form> 
   <%@include file="../tools/PageFooter.jsp"  %>     
    </body>
</html>
